home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 5 / Apprentice-Release5.iso / Source Code / C / Games / Xconq 7.1.0 / src / xconq-7.1.0 / configure.in < prev    next >
Encoding:
Text File  |  1996-07-07  |  3.0 KB  |  94 lines  |  [TEXT/R*ch]

  1. ##############################################################################
  2.  
  3. ## This file is a shell script fragment that supplies the information
  4. ## necessary to tailor a template configure script into the configure
  5. ## script appropriate for this directory.  For more information, check
  6. ## any existing configure script.  
  7.  
  8. ## Be warned, there are two types of configure.in files.  There are those
  9. ## used by Autoconf, which are macros which are expanded into a configure
  10. ## script by autoconf.  The other sort, of which this is one, is executed
  11. ## by Cygnus configure.  
  12.  
  13. ## For more information on these two systems, check out the documentation
  14. ## for 'Autoconf' (autoconf.texi) and 'Configure' (configure.texi).  
  15.  
  16. ##############################################################################
  17.  
  18. ### To add a new directory to the tree, first choose whether it is a target
  19. ### or a host dependent tool.  Then put it into the appropriate list
  20. ### (library or tools, host or target), doing a dependency sort.  For
  21. ### example, gdb requires that byacc (or bison) be built first, so it is in
  22. ### the ${host_tools} list after byacc and bison.  
  23.  
  24. # these tools are built for the host environment
  25. #
  26. host_tools="kernel x11 SelFile curses lib doc test misc"
  27.  
  28. configdirs=`echo ${host_libs} ${host_tools} ${target_libs} ${target_tools}`
  29.  
  30. ################################################################################
  31.  
  32. srctrigger=move-if-change
  33. srcname="Xconq"
  34.  
  35. # per-host:
  36.  
  37. host_makefile_frag=`${srcdir}/config.host ${host} .`
  38.  
  39. # per-target:
  40.  
  41. # some tools are so dependent upon X11 that if we're not building with X, 
  42. # it's not even worth trying to configure, much less build, that tool.
  43.  
  44. case ${with_x} in
  45.   yes | "")  # the default value for this tree is that X11 is available
  46.     ;;
  47.   no)
  48.         configdirs=`echo " ${configdirs} " | sed -e 's/ x11 / /'`
  49.     ;;
  50.   *)
  51.         echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2
  52.         ;;
  53. esac
  54.  
  55.  
  56. case ${enable_selfile} in
  57.   yes | "")  # the default value for this tree is that SelFile is available
  58.     ;;
  59.   no)
  60.     noconfigdirs="SelFile"
  61.     ;;
  62.   *)
  63.         echo "*** bad value \"${enable_selfile}\" for --enable-selfile flag; ignored" 1>&2
  64.         ;;
  65. esac
  66.  
  67.  
  68. notsupp=""
  69. for dir in . $noconfigdirs ; do
  70.   if [ $dir != . ] && echo "# ${configdirs} #" | grep "${dir} " >/dev/null 2>&1 ; then
  71.     configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
  72.     if [ -r $srcdir/$dir/configure ] || [ -r $srcdir/$dir/configure.in ]; then
  73.       notsupp="$notsupp $dir"
  74.     fi
  75.   fi
  76. done
  77.  
  78. # Produce a warning message for the subdirs we can't configure.
  79. # This isn't especially interesting in the Cygnus tree, but in the individual
  80. # FSF releases, it's important to let people know when their machine isn't
  81. # supported by the one or two programs in a package.
  82.  
  83. if [ -n "${notsupp}" ] && [ -z "${norecursion}" ]; then
  84.   echo "*** This configuration is not supported in the following subdirectories:" 1>&2
  85.   echo "    ${notsupp}" 1>&2
  86.   echo "    (Any other directories should still work fine.)" 1>&2
  87. fi
  88.  
  89. #
  90. # Local Variables:
  91. # fill-column: 131
  92. # End:
  93. #
  94.